﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SmugMugToLiveWriter
{
    public partial class ChooseSize : Form
    {
        private string PictureSize = null;
        public String SelectedPictureSize
        {
            get { return PictureSize; }
        }

        private bool EmbedLink = false;
        public bool EmbedPictureLink
        {
            get { return EmbedLink; }
        }


        
        public ChooseSize()
        {
            InitializeComponent();           
            SizeCmbBx.SelectedItem  = "Tiny";
        }

        /// <summary>
        /// Defines the actions that are performed when clicking the Cancel button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CancelBttn_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            Close();
        }

        /// <summary>
        /// Defines the actions that are performed when clicking the Ok button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OkBttn_Click(object sender, EventArgs e)
        {
            PictureSize = SizeCmbBx.Text;
            EmbedLink = EmbedLinkChckBx.Checked;
            this.DialogResult = DialogResult.OK;
            Close();
        }
    }
}
